package com.sp.scmdb.bean;

/**
 * 
 * 参数管理Bean
 * 
 * */
public class ParameterBean extends PageBean {

	/***/
	private String id;

	/** 园名 */
	private String headName;

	/** 超时人数 */
	private String personOut;

	/** 超时时间 */
	private String timeOut;

	/** 刷新时间 */
	private String refreTime;

	/** 该条数据是否使用 0--未使用 1--已使用 */
	private String asUse;

	/** 刷新时间 */
	private String deadTime;

	private String globalID;

	public String getGlobalID() {
		return globalID;
	}

	public void setGlobalID(String globalID) {
		this.globalID = globalID;
	}

	/**
	 * @return the headName
	 */
	public String getHeadName() {
		return headName;
	}

	/**
	 * @return the personOut
	 */
	public String getPersonOut() {
		return personOut;
	}

	/**
	 * @return the timeOut
	 */
	public String getTimeOut() {
		return timeOut;
	}

	/**
	 * @return the refreTime
	 */
	public String getRefreTime() {
		return refreTime;
	}

	/**
	 * @param headName
	 *            the headName to set
	 */
	public void setHeadName(String headName) {
		this.headName = headName;
	}

	/**
	 * @param personOut
	 *            the personOut to set
	 */
	public void setPersonOut(String personOut) {
		this.personOut = personOut;
	}

	/**
	 * @param timeOut
	 *            the timeOut to set
	 */
	public void setTimeOut(String timeOut) {
		this.timeOut = timeOut;
	}

	/**
	 * @param refreTime
	 *            the refreTime to set
	 */
	public void setRefreTime(String refreTime) {
		this.refreTime = refreTime;
	}

	/**
	 * @return the asUse
	 */
	public String getAsUse() {
		return asUse;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @param asUse
	 *            the asUse to set
	 */
	public void setAsUse(String asUse) {
		this.asUse = asUse;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((asUse == null) ? 0 : asUse.hashCode());
		result = prime * result
				+ ((deadTime == null) ? 0 : deadTime.hashCode());
		result = prime * result
				+ ((headName == null) ? 0 : headName.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((personOut == null) ? 0 : personOut.hashCode());
		result = prime * result
				+ ((refreTime == null) ? 0 : refreTime.hashCode());
		result = prime * result + ((timeOut == null) ? 0 : timeOut.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ParameterBean other = (ParameterBean) obj;
		if (asUse == null) {
			if (other.asUse != null)
				return false;
		} else if (!asUse.equals(other.asUse))
			return false;
		if (deadTime == null) {
			if (other.deadTime != null)
				return false;
		} else if (!deadTime.equals(other.deadTime))
			return false;
		if (headName == null) {
			if (other.headName != null)
				return false;
		} else if (!headName.equals(other.headName))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (personOut == null) {
			if (other.personOut != null)
				return false;
		} else if (!personOut.equals(other.personOut))
			return false;
		if (refreTime == null) {
			if (other.refreTime != null)
				return false;
		} else if (!refreTime.equals(other.refreTime))
			return false;
		if (timeOut == null) {
			if (other.timeOut != null)
				return false;
		} else if (!timeOut.equals(other.timeOut))
			return false;
		return true;
	}

	public String getDeadTime() {
		return deadTime;
	}

	public void setDeadTime(String deadTime) {
		this.deadTime = deadTime;
	}

}
